<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ page contentType = "text/html; charset=UTF-8" %>
<script type="text/javascript">
    function <c:out value='${param.colName}'/>_onchange()
    {
    	var formItem4Disp = document.all("<c:out value='${param.formItem4DispName}'/>");
    	var formItem = document.all("<c:out value='${param.formItemName}'/>");
    	var dateValue = formItem.value;
    	formItem4Disp.value = dateValue.substring(0,4) + "年" + dateValue.substring(4,6) + "月" + dateValue.substring(6,8) + "日";
    }
</script>
<script type="text/javascript">
    var formItem4Disp = document.all("<c:out value='${param.formItem4DispName}'/>");
    var formItem = document.all("<c:out value='${param.formItemName}'/>");
    var dateValue = formItem.value;
    formItem4Disp.value = dateValue.substring(0,4) + "年" + dateValue.substring(4,6) + "月" + dateValue.substring(6,8) + "日";
</script>
<input type="button" id="f_trigger_<c:out value='${param.formItemId}'/>" name="ok" value="日历">
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "<c:out value='${param.formItemId}'/>",      // id of the input field
        ifFormat       :    "%Y%m%d",       // format of the input field
        button         :    "f_trigger_<c:out value='${param.formItemId}'/>"   // trigger for the calendar (button ID)
    });
</script>